package com.wechat.wechat.service;

import com.wechat.wechat.dto.OrderDTO;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;


/**
 * @author NN
 * @2020/2/20 15:58
 */
public interface OrderService {
    OrderDTO create(OrderDTO orderDTO);
    OrderDTO findOne(String orderId);
    Page<OrderDTO> findList(String openId, Pageable pageable);
    OrderDTO cancel(OrderDTO orderDTO);
    OrderDTO finish(OrderDTO orderDTO);
    OrderDTO paid(OrderDTO orderDTO);

    /**
     * 卖家端 获取全部列表
     */
    Page<OrderDTO> findList( Pageable pageable);


}
